<?php
// [ 应用入口文件 ]

// 绑定当前访问到index模块
define('BIND_MODULE','callback');

// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');

// 定义运行时目录
define('PROJECT_NAME','itboye_chequanbao_php');

define('RUNTIME_PATH',__DIR__ . '/../../../Runtime/'.PROJECT_NAME.'/');


// 开始运行时间和内存使用
define('START_TIME', microtime(true));
define('START_MEM', memory_get_usage());
//环境变量
define('NOW_TIME', $_SERVER['REQUEST_TIME']);


// 当前文件名
if(!defined('_PHP_FILE_')) {
    $_temp  = explode('.php',$_SERVER['PHP_SELF']);
    define('_PHP_FILE_',    rtrim(str_replace($_SERVER['HTTP_HOST'],'',$_temp[0].'.php'),'/'));
}
if(!defined('__ROOT__')) {
    $_root  =   rtrim(dirname(_PHP_FILE_),'/');
    define('__ROOT__',  (($_root=='/' || $_root=='\\')?'':$_root));
}

require __DIR__ . '/../../../thinkphp/think-5.0.9/start.php';